package com.fjh.roadmannage.bean

import com.cxz.kotlin.baselibs.bean.BaseBean
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass


data class HttpResult<T>(
    @Json(name = "token") val token: String = "",
) : BaseBean<T>()

// 登录数据
data class User(
    var address: String?,

    val createName: String,

    val sex: String,

    val createBy: String,

    val createDate: String,

    val email: String,

    val updateDate: String,

    val updateBy: String,

    val updateName: String,

    val memo: String,

    val personType: String,

    val signatureFile: String,

    val devFlag: String,

    val fax: String,

    val portrait: String,

    val mobilePhone: String,

    val officePhone: String,

    val citizenNo: String,

    val empNo: String,

    val userType: String,

    val post: String,

    val realName: String,
    val signature: String,


    val departid: String,

    val browser: String,

    val deleteFlag: Int,

    val status: Int,

    val userName: String,

    val password: String,


    val userKey: String,

    val activitiSync: String,

    val userNameEn: String,

    val id: String?,
)

data class CollectionResponseBody<T>(
    @Json(name = "curPage") val curPage: Int,
    @Json(name = "datas") val datas: List<T>,
    @Json(name = "offset") val offset: Int,
    @Json(name = "over") val over: Boolean,
    @Json(name = "pageCount") val pageCount: Int,
    @Json(name = "size") val size: Int,
    @Json(name = "total") val total: Int
)

data class CollectionArticle(
    @Json(name = "author") val author: String,
    @Json(name = "chapterId") val chapterId: Int,
    @Json(name = "chapterName") val chapterName: String,
    @Json(name = "courseId") val courseId: Int,
    @Json(name = "desc") val desc: String,
    @Json(name = "envelopePic") val envelopePic: String,
    @Json(name = "id") val id: Int,
    @Json(name = "link") val link: String,
    @Json(name = "niceDate") val niceDate: String,
    @Json(name = "origin") val origin: String,
    @Json(name = "originId") val originId: Int,
    @Json(name = "publishTime") val publishTime: Long,
    @Json(name = "title") val title: String,
    @Json(name = "userId") val userId: Int,
    @Json(name = "visible") val visible: Int,
    @Json(name = "zan") val zan: Int
)
